<template>
  <div>
    <rx-checkbox label="优雅" :checked="checked" @change="onCheckboxChange"/>
    <br>
    <rx-checkbox label="优雅" :checked="checked" @change="onCheckboxChange"><span class="slot">插槽</span></rx-checkbox>
    <br>
    <rx-checkbox label="你点不动我" :checked="checked" :disabled="true" @change="onCheckboxChange" />
  </div>
</template>
<script>
  export default {
    data(){
     return {
      checked:true
     }
    },
    methods:{
      onCheckboxChange(nval){
        this.checked=!this.checked;
      }
    }
  }
</script>
<style>
.slot{
  color: green;
}
</style>

